from django.conf.urls.defaults import *
from django.conf import settings

# Uncomment the next two lines to enable the admin:
from django.contrib import admin

admin.autodiscover()


urlpatterns = patterns('',
    (r'^core/', include('core.urls')),
    (r'^admin/doc/', include('django.contrib.admindocs.urls')),
    (r'^admin/', include(admin.site.urls)),
    (r'^accounts/login/$', 'core.views.ingresar'),
    (r'^$','core.views.ingresar'),
    # Inclusion del archivo urls.py de la carpeta calendario
    (r'^calendario/', include('calendario.urls')),
    (r'^asistencia/', include('asistencia.urls')),
    # Inclusion del archivo urls.py de la carpeta Clickers
    (r'^clickers/', include('clickers.urls')),
)

urlpatterns += patterns('',
        (r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
    )
